package demo07String;

// StringBuilder
public class Demo03 {
    public void way01(){
        StringBuilder sb1 = new StringBuilder();//表面调用StringBuilder的空构造器，实际上是对底层value数组的初始化，长度为16
        StringBuilder sb2 = new StringBuilder(3);// 表面调用StringBuilder的有参构造器，实际上对value数组的长度进行初始化，长度为3
        StringBuilder sb3 = new StringBuilder("abc");//

    }
}
